<?php

use yii\db\Migration;

/**
 * Class m171228_074847_add_column_court_summons_to_project_investigation
 */
class m171228_074847_add_column_court_summons_to_project_investigation extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_investigation','court_summons', $this->text()->comment('开庭传票是否送达'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m171228_074847_add_column_court_summons_to_project_investigation cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171228_074847_add_column_court_summons_to_project_investigation cannot be reverted.\n";

        return false;
    }
    */
}
